package com.xbongbong.pro.statistic.pojo;

import com.xbongbong.pro.enums.datacenter.datawarning.enums.DataWarningStrategyTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName DataWarningStrategyPojo
 * @Description 数据预警设置执行策略pojo
 * @Author mengna.Deng
 * @Date 2021/4/16 18:59
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class DataWarningStrategyPojo implements Serializable {
    private static final long serialVersionUID = -1L;

    /**
     * 策略类型
     * @see DataWarningStrategyTypeEnum
     */
    @NotNull(message = "策略类型不能为空")
    @Range(min = 1, max = 6, message = "策略类型不正确")
    private Integer strategyType;
    /**
     * 策略日期（日期计算）
     */
    private String strategyDay;
    /**
     * 策略日期（星期计算）
     * @see com.xbongbong.pro.enums.WeekEnum
     */
    private Integer strategyWeek;
    /**
     * 策略时间
     */
    private String strategyTime;
}
